<?php
require_once("classes/adrese.class.php");

$action = $_GET["a"];

$adrese = new adrese();

switch ($action){
	case "searchUlica":
		$lok = array(
			"grad"		=> $_GET["lnGrad"],
			"opstina"	=> $_GET["lnLops"],
			"naselje"	=> $_GET["lnNas"]
		);
		$adrese->searchUlica($_GET["ul"],$_GET["d"],$_GET["dh"],$_GET["st"],$lok);
		break;
}

?>